package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户档案<br>
 * @author yangh
 */
@Entity
@Table(name = "userprofile")
public class UserProfile extends TXBYObject {
    private Integer self;            // 是否本人
    private Integer age;             // 年龄
    private Integer uid;             // 所属哪一个用户
    private String name;             // 真实姓名
    private Integer gender;          // 性别
    private String phone;            // 手机号码
    private Long birthday;           // 生日
    @Column(name = "card_type")@JSONField(name = "card_type")
    private String cardType;         // 证件类型
    @Column(name = "card_number")@JSONField(name = "card_number")
    private String cardNumber;       // 证件号
    @Column(name = "medical_type")@JSONField(name = "medical_type")
    private String medicalType;      // 就诊卡类型
    @Column(name = "medical_number")@JSONField(name = "medical_number")
    private String medicalNumber;    // 就诊卡号
    @Column(name = "patient_id")@JSONField(name = "patient_id")
    private String patientId;        // 医院系统中的病人号
    private String relation;		 // 关系
    public Integer getSelf() {
        return self;
    }

    public void setSelf(Integer self) {
        this.self = self;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getBirthday() {
        return birthday;
    }

    public void setBirthday(Long birthday) {
        this.birthday = birthday;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getMedicalType() {
        return medicalType;
    }

    public void setMedicalType(String medicalType) {
        this.medicalType = medicalType;
    }

    public String getMedicalNumber() {
        return medicalNumber;
    }

    public void setMedicalNumber(String medicalNumber) {
        this.medicalNumber = medicalNumber;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }
}